<?php 
$headermsg = '\"HTTP/1.0 '.$code[0].' '.$code[1].'\"';
header($headermsg);
$user = $user[0]['User'];
echo "{\"user\":{ ";
echo "\"id\":\"".$user['id']."\", ";
echo "\"username\":\"".$user['username']."\", ";
echo "\"password\":\"".$user['password']."\"}";
echo "}";
?>